home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5144 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. Path: nntp.magwien.gv.at!ta5790
  2. From: stw@adv.magwien.gv.at (Wolfgang Steiner)
  3. Newsgroups: comp.os.ms-windows.programmer.win32,comp.lang.basic.visual.misc,comp.os.ms-windows.programmer.ole,comp.lang.c++
  4. Subject: Re: Calling 32-bit DLLs from 16-bit-Applications
  5. Date: Fri, 02 Feb 96 06:35:41 GMT
  6. Organization: City Council of Vienna, Computer Dep.
  7. Message-ID: <4esbbt$1dk_001@adv.magwien.gv.at>
  8. References: <4enu1u$20c_001@adv.magwien.gv.at> <3110DD3B.455D@exptech.com>
  9. NNTP-Posting-Host: ta5790.adv.magwien.gv.at
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <3110DD3B.455D@exptech.com>, Brad Wilson <bradw@exptech.com> wrote:
  13.  
  14. >> ) Writing a 32bit-OLE-Server? (I could use VC++ 4.0)
  15. >
  16. >This is probably your easiest way to get things done.  Write the OLE
  17. >server with automation exports, and call the automation calls in the
  18. >16-bit application.  The advantage here is that the OLE libraries will
  19. >automatically "marshall" the calls across 16- and 32-bit, regardless
  20. >of the operating system in use.
  21. >
  22. I've tried this way. Under Win95 it works without problems, within
  23. my Visual Basic program I can also start the OLE server with
  24.  
  25. Set MyObj = CreateObject("MyServer.xyz")
  26.  
  27. Under WfW it seems that it isn't possible to start a 32bit-OLE server from
  28. a 16bit-application. I got an error message.
  29. After starting the OLE-server from a 32bit-application, the VB3-application
  30. could work together with the OLE-server 
  31.  
  32. Set MyObj = GetObject(,"MyServer.xyz")
  33.  
  34. Regards
  35. Wolfgang
  36.  
  37. --------------------------------------------------------------------
  38. Wolfgang Steiner; MA 14 - ADV; Rathausstr.1; A-1082 Vienna; Austria
  39. phone:    +43-1-4000/98601
  40. fax:    +43-1-4000/7141
  41. eMail:    stw@adv.magwien.gv.at
  42. --------------------------------------------------------------------
  43.